Fix label() method and make more templates configurable