Cleaned up elf loading at start of app.