Added flags for redis port and listening port.