Add proxy function

However it doesn't seem to be needed. Maybe only in windows?