Companies offering more flexible schedules to attract workers