It is again from my app, the requirements were different, some of the code from that plugin is still got pasted in this version of plugin.