Moved execution code to index.js