Adding support for instances by PHP code export