Add opts to build classmethod