Added localstorage support for pushing the inputtrace