Using extend (to fix compilation error)