Better input/output system for triggers