added support for realtime predictions;