Added search to apt function