Added ClientBase class for better handling.