Changed all floats to CGFloats