Updated commentary within the functions