Adding framework for better recryption