Added cache library code