Common utility helpers.