Added redis and fixed a lot of stuff