Make the to_number function work better.