Added comments in the engine for readability