Add time picker. Scheduler initialization was implmented in order to avoid closure ambiguity.