Changed logic to use decrypting boolean similar to code used in change state method.