AES functionality now working