Major code optimizations up in here yo!