Prepare to write loader