Added initial logic for scanLog