Updated opening post to reflect new information learned about the way this code works.