You haven't exactly described your use case, i.e. why you are pursuing this in the first place ?
i.e. what do you want to accomplish, that led you to these functions.
I'm not saying I will be able to help you once you do this, but it would help me decide if I can add value for you or not (and presumably other forum users too)