Read and handle client input WIP