Unique MID generation implemented, added /add route.