Added error when values are missing.