Added threading to server creation