Whoops, pasted function twice.