Smart task manager