Fixed caching. Added scotus code.