Put sesnorInit and readFile in functions