Add util script
Add logic to index route