Added jsDoc comments.