Add protection from uncorrect data.