Created main for client