Made some slight changes to SubAction.