Code for ipdWard and remove syso...