Adding some default values to client and simplify the sync_with_api method