IoTA utility functions