Refactoring: refactor server file (0.1).