Without code to look at, tips are very general. Reuse objects wherever possible by reconfiguring them with new data. Sometimes certain objects can be undefined within a sub and it works, but not gauranteed in general.
These 2 links should get you going in the right direction.