Dirty hack when bcmath extension not available.