Added some code to enhance the performance of the shadow.
Merge pull request #1 from wimaha/wimahaBranch

Added some code to enhance the performance of the shadow.