Real time mode done, needs minor tweaking