Added new thread with maintick on server.