Changed all float to double