Moved instructions for pulsing shadows