Do-file to search code