I would appreciate if these functions still kept nominally to project style and the same lint guidelines, e.g. one var statement per function