Check for and update to newer versions

Review this carefully because bugs have the potential to be kind of a headache.
More than usual.