Fixed attribute duplication and added a 'retries' configuration option to client.