Add poison middleware