BEFORE SCRIPT.