Added node to handle pit flag
resolved merge conflicts