Removed usage of temporary path variable