Add callback function and generate search report