Removed hardcoded call to directory