Adding s3 utility functions