Added path functions to platform code.