Added weight attribute to fragment.