Prevent actions from being generated depending on input