Transformed into plugin

Transformed o plugin, now accepts parameters