Added exception for wrong keys.