Refactor call to networking code
Merge branch 'master' of https://github.com/jherrmann/smartgym