Added factory build function for etxt