WIP: Implement build index task