Redesigned the structure. Created two modules one for the encryption and
decryption of the messages and another that will only handle the
messages.