Refactored entropy_in_reverse.csd