Several enhancements and bug fixed for ASearch