Add a function to get a fragment with IDs assigned