Added a localdir variable