There is a function for this.
Lose the old shit.