Merged raw_results bug fixes from serial_patches branch