You may have to change some of the code above cos of my other comments.