This same code is above-- create a helper method.