Monster fixes applied to Loop.java