Functions required to index attributes