Implemented simple engine controller (not tested)
Implemented main