Add nodeClassSwitch and nodeLastChild