Built in some "optimizations" and removed the break statements.