Everything works fine. Still need to implement WriteFile + beautify the output