Added code attribution/disclaimer.
Use trigger to change the state of the menu actions; that way, we get the
callbacks.