Added transform method to Compiler interface.