Added simultaneous encoding option