Fixed the both scripts - it had weird mixes of tabs and spaces. Replaced all with spaces