Added complex statefull transformer