Removed unnecessary threads (it appeared that server works much slower with them, than without).