Added ability to use a fragment