Made code work using relative paths.