Updated rf-prepare to output headers according to scheme