Work in progress real time analysis code ...