Moved script to index