Changed to using extend.