Added pause to main engine loop. Previously, there was none.