Script is now in a working state.