Add requirements for actions

An action is only performed if all of the requirements are met.