Add beforeFindAfterOptions hook