Refactoring some code for more readability.
Merge pull request #6 from viig99/proxying

Refactoring some code for more readability.