Changed all floats to doubles