Adding return value to findFactType method.