Naive version of the engine