Move header function to headers