[WIP] Added ability to specify custom storage adapter.