Thanks for your reply!
When I try to run that code as stand alone it gives me a debug error.