Semi-finalized enhanced prototype code done.