Reduced some huge bottlenecks. Way better performance - tested on a computer.