Made a header and moved somethings out to there.