Managed to saparate client process properly