Pre-Altering main script for overlay thread