Added loop to call OSSendPtab