Added blocking functioin and timepicker