Modified to fit relative paths.