Added initial encryption code. May or may not work...