Basic but working real time implementation