Finally got script running