Implements the setstat operation.

Methods