Using location variable instead of hardcoding path