Got factory working