Moved plug code out of utils and into dedicated module.