Code optimizations n shit