Prepared for emscripten