Touched up function definitions; we're recommending function expressions so we might as well use them.