Adds completed solution with middleware