Adding index file from Matt's old code as base