Added header comments to functions.