App maintenance and sequence number algorithm