Added check methods for weight, key and index.