Utilities and base files