Implemented directory storage.