CISC 325, modified from sudarmuthu's taskmanager