Set the priority in a much cleaner way