Added QAgent with short-term memory