Better API for generating arguments