Wiring in shadow extraction

WIP: @markhibberd 
Not safe.