Made defining the "transform" function completely optional.