Fixed bug in satellite destruction. Code now correctly handles arbitrary input functions.