Implemented engine initialization and handling