Added timing in engine class