Replaced unix-only function call