Attack is now complete. Can find key. Needs some cleanup and comments.