Updates to GUI trap example.