New program depended Gate algorithm somewhat broken