Seems to be working, need to check on new line characters and END to print properly.