Adding callback for retrieving ID