Changed stuff from double to float

glub glub