Added debugging functionality, home-grown TODO list.