Revised Item file reading

Script is currently unstable.