Changed sleep calculation in search