Change atoi() to atol()