Interim commit: new PInvoke functions added