Improved transform to allow chained commands and even modifiers on commands.
Added some minor functionality to the transform.