Creating with statement support for LB templated script.