Added define check to Plugins