Added indexing ability to pie elements