Changed all doubles to floats