Further additions to processQuery prediction command.