Fixes shadowed variables warning. Closes #150.