Moved comments to top of functions