Streamlined code
Streamlined result_notes function