These function definitions could benefit from some light, high-level comments.