Finish adding keys and rules