Extract the two methods