It works better from REPL. Needs more work to handle big files