Improved the algorithm on finding LSN0. It can be a tricky basterd.