Moving this to an action.