Declare objects as late as possible, i.e. directly before their first usage. Having it declared early, then unused for several lines, then used somewhere at the bottom, is confusing.