Added option to run the process under a realtime scheduler; cleanups.