Add functions and comments.