Add callback to buildClient