Lambda added to QAgent