Made a way to dynamically calculate the header offset for a file