Finish mode add and search hook