Minor change to rounding function