How to register input from an external program - MPGH