Updating search code