Added an other security check in simplePlugin class