Update to secretes code