Utility functions, developed for Edhita.