Moved argument checking from main to client class.