Improved chopping of a lithium beam for plasma edge diagnostic at ASDEX Upgrade.