Reworked to replace Bloom RightScripts.