Added third-pass encryption