HOPKINS: Reduce the scope of some variables