Caching done. Error checking done. Helper methods created