Implement Write() for AGG