Inline search method refactor