Updated template for IO discretes