Corrected error in round() function, now rounds to correct scale.