Remove hard path and replace with $local_path global var
Add the $local_path global variable