Bugfixes. Improvements to local storage and gear box system