Add progress info to preprocessing code