Use the callstack_chain method in the right place