Added resize command. Minor changes throughout engine.