Adding some output caching.