Added search by code function