This was cross posted in the Coding forum.