Using a function to populate the allowTimes option