Added getFunction wrapper