Allow arbitrary argument sequences

Closes #1123