Improve fragment construction.