Added a configurable "max health" feature.