Added a require_once to class and updated variables to function with the filestore class