Essential code for plugin added
(this code is screaming for extending)