Added extract method.