New function for handling age values.