Adding templates, very ugly