Separate function def from rest of program