Added the replacenumbers function