Session variable theTask changed to theTaskName, throughout. Other minor cleaning.