Written by Robin Cornett. Last updated on June 28, 2023. Fix: Fatal error due to improper function call