Added macro for safely calling lambda variables.