Retain location when generating nodes