Functions in outer file