Yet another package of misc functions