Added a loop class describing how to allow an application to run in real-time.