Use atoi() instead of strtol