Turned number conversion into a function so I can call it in my main code.