Added sub task type and some commenting.