Add wrap id functionality.