Engine: implemented engine command hooks (closes: #453)