Removed unused elements from the realtime code.