Updated and Final Key Implementation