Renamed subject and encodeBase64 variables and removed debug code