Could you post the main function here? (if you do, please use the [ code ] [/ code ] tags (without the spaces)