Implemented base64 decoding as well