Server thread implemented. Implementing signal handling now