Using a factory for the realtime.