Added a try/cache caluse in my generate