Allow the user to provide their own scan function
Export the default scan function
1.2.0