Fixed memory issue - error deque was missing maxlen parameter.