Added auto-update functionality