Added some helper functions for ABI handling