Allows expected outcodes to be specified. Closes #21