Extract variable