Modified the interface for check, now always returns a number.