Fixed initialize line and deleted unecessary loop from script