Fixed missing return value + use std::atoi