Changed access rights.
Fixed connection issue if server not started.
Changes.
Refactoring.