Variable arguments middleware