Split out functions into files
Display metadata differently depending on context