Implemented sponging commands.

The interaction with the export needs more testing, though.