Added interrupt handlers, temp_data packet parsing function.