Add missing parameters to checkForLinks() call.
Set default value for variable.