Fixed generation

-Used part.RequestResource to control resource generation
-Still has debug statements