Added header, wrapped in a function.