Put live update code in one place