Programmatically start updating

This is how I implemented this feature in my project. I think I'm not missing anything.