added support for updating in longer periods