Updated code for mocking paths.