Laid out function signatures. Imported all headers needed (hopefully).