Add functions for preparing a Pass 1 file for Pass 2