Add complicated if case.