Refactoring:Use args for client init method