Avoided reassignment of parameters in four places.
Merge pull request #12 from rsingla92/avoidReassignment

Avoided reassignment of parameters in four places.