Refractor to use roundNumber function.