Good function, we've needed this.