this.end() can be changed to push(null, nil);