Not sure if wired properly with index.js