contract Pausable is Ownable {
	bool public stopped = false;
	modifier stopInEmergency {
		if (stopped) {
			throw;
		}
		_;
	}
  
	modifier onlyInEmergency {
		if (!stopped) {
			throw;
		}
		_;
	}
	
/*
 * EmergencyStop Function
 * called by the owner on emergency, triggers stopped state 
 */
function emergencyStop() external onlyOwner {
    stopped = true;
	}

	
/*
 * Release EmergencyState Function
 * called by the owner on end of emergency, returns to normal state
 */  

function release() external onlyOwner onlyInEmergency {
    stopped = false;
	}
}
/*
 * Pausable Function
 * Abstract contract that allows children to implement an emergency stop function. 
 */
function emergencyStop() external onlyOwner {
    stopped = true;
	}

/*
 * EmergencyStop Function
 * called by the owner on emergency, triggers stopped state 
 */