Fixed an issue where incorrect device profiles were still published.
Improved the logging (readability) of written commands.