Modified much of original program