More robust age checking