Lexically scoped subroutine wrappers