Added code to track amount from self healing

This code may be buggy due to relying on variables that change each fairly
often.