Refactoring: refactor server file (0.2).