Marked code for changing the key.