Why's the local needed here? Looks like leftover from a refactoring...