Swig implemented. Local storage implemented