If you want the program to do something different, please post what it is currently doing and an example of what you want it to do. And an explanation.

Please edit your post and wrap your code...