Adds fragment watch
Reindents code