How easy is it to replace this system call with a function call by adding the relevant code from the toolkit into trunk?