Now works with transformed objects
Added copyright headers