Added autoupdate functionality