Common library utilities