Added optional auto-update feature.