Added some mroe features to SecurePopen class