Added option to only look in current file.