Fixed a bug with the caching example, and added specific processing phases