Added listeners to indexer main