v0.4: Implemented overwriting control and lots of engine improvements