Refcatoring + ability to configure separator and output