Adding Z gate