Making getStorage function static