Adding multiprocessing
Adding PI field to read group header only if it is defined