Add a simple logic of engine