This is only used in the method above. Why do we need a separate method?