Added additional comments for custom functions.