Added getIdFor to functions. Addresses #14.