Added offset support to Transformer.