Added auto template loading system