Updated authorize to remove old keys too