Improved redis connection.