First files and functions