Fix relations. Add cache counter to code to save likes.