Added check function naming and scope.