Modifications to get shadows working

Modifications to get shadows working