First step of raw file parser