Added another method to process line using a callback class