Implemented proper error codes
Implemented OnPluginCreated