A handful of utility functions built from "scratch"