Fixed return code prompt. Added history number.