Make scan context accesible to module functions