Converted all function float parameters to double