Replaced slow augeas with template