Added templates, added CAP/NOCAP options