Assorted functions optimized for my workflow