Added JSDoc comments.