Changed callback name to realtimeCallback