A few misc utility functions for light table