Added base64 decoding