Implemented a safer way to conveniently format the data lines