Made templates inheritance even better.