Removed self dependecy. Templates are now loaded from template file.