Switching modes for npagent