Some missing functions for the debugger and some hacking on an example program