Bringing Daniel's version of native chosen up to date