Added logic for Else serialization.