Working out traceback functionality.