General functions for use across projects