Core functionality used by multiple lucos modules