Moves actions together so functions can be used elsewhere too