Added some logic to index