Common utility functions for CTS