Changing CGFloat to float to fix compiler error with XCode 5.1.