Core functionality for betygen projects.