NullPointer fixed
Adjusted code to new cPlugin