Made extendMatch return the extensions