Update: added variable to set shadow mode