Update

Added the functionality to capture stored variables and returned refs.