Moved the code to make room for an encrypt portion of the code