Function length

I flagged three functions that could potentially be considered too
long. I haven’t done anything to try to change them yet.