I suggest take the human brain/mind as a 'system',certain biochemical inputs as 'pain' and see how the pain punishment can be prolonged before the brain system fails to register