Optimizations

Optimized code and jumping.