Renamed varcheck to declcheck
Fixed compilation issues due to refactor