New functions file

DHS approved!