Added some fragment functionality