Fixed the newline problem, Runs properlely