Debugging
Code based on returning cache state to main