Use CGFloat instead of float