Removed scanf call in uiLoop.