Added mutex to API sequence number