Move calib functionality into stream_data