Changed parseInt to ParseFloat