Key saving completed internal methods. To be tested. Must update the JS bindings and their arguments handling