Made engine explicit
Removed debug code