Add generating device uuid logic