Allow for locals

This should allow for locals to be passed into the erector.