Refactored commands slightly, add Redis support.