Implemented working with filesystem directly