Fixed add_extension() usage
Fixing template deprecation