Common utility functions for MARTI