Adding an action to a process