Update float to CGFloat for future proofing code (32-bit vs. 64-bit)