Adding auto-update to spark library