[WIP] Added the ability to use custom storage adapter.