Added base 64 encoding