Added persistence and gathering from agilityjs