Refactoring FogbowResource. Adding state to command.