Added automatic task manager

untested