Utility functions for the cli toolkit