Added custom round function.