Added dynamic-import code to eventually enable plugins