Use individual stream index variables
Clean up argument names a little