[+TASK] Refactored agreement setup to support xml files as well