Updating time interval dynamically to average update lag - fix #19
5.4.0