Added dynamic calculation for last update according to library activity