Integrating changes from S3Pail
Merged the changes done by Rajat on AbstractPail.java