Sorry, I don't have the original program.
However, the code above is all the program really was.
You sure you did everything exactly right?