Engine code completed, untested