A set of useful helper functions for dart