Second part done for searching