Changed to using to_i method