Add base64 and tests.