Building single require statement - accounting for circular references
Clean up debug