Added more stuff for snapping fragments
Note: I can't figure out how to add elements programatically to the list
so I'm just gonna leave this alone and go back to old method.