Added max_retries argument to create_circuit