Update engine.c