Started writing server side. Got problem with Threads