Use settrap/addtrap in other parts of the code.