Ah yes, it was in fact not working in the compiled plugin - I somehow missed to call the connection call after compiling the plugin. Should be fixed now.