Implement a part of a function to add an action.