Updated index and script