Implementing yywrap to rescan