Working version of plugins module compiler