Finished solving transition problem