LagFix.java: completed stage 1