Some cleanup to plugin script - removed properties & methods.