Removed parseInt and switched to parseFloat