Add search function as a workaroud for shell routine