Major refactoring, split computeres into computeresu and computeresx