Nicer Solution for Document ID