I didn't write this code, this was already in master.