Port: bulk operations

Used custom tool to convert java code