Added transform function