Readded custom rounding functions