Add method to execute an action