Using strtol with overflow checking.