Added transformation function for modularity.