Cut down the amount of code for the elf parser