Main client