Weemo, I created this script just as a proof of concept because there were no alternatives out there at the time. Therefore, I suggest that in a production environment you use this Auto Update class by Jānis Elsts instead.