Add missing ParseStorage.
Change main to return a function.