Do we have a guideline that global statements should be in the beginning of functions?