Make map variable local