Add lookup function for building.