To use script variable instead of buffer variable