Getting track index.