Actually some of the code got pasted in the beginning of the file. Thanks so much for your help!!!