DRAFT: crappy code for algorithmInstance (supports multiple outputs)