Common utilities and helpers