Add getIndexOf helper function. Modify addListeners and log to incorporate new 'target' for Luke