Simple way of capturing and printing callstacks