Try to get the encryption steps in the right order