Added toggle button. Need to create thread and start and stop thread on
toggle.