Changed some doubles to floats.