Refactored climpd to be more generic so that each message doesn't need a corresponding climpd-function anymore.