added time constraint, user can do different things in different time.