Turning plugins to code