Structure code to run before any application starts

Thanks for the quick reply! Turns out I was not returning :ok like I was supposed to from the on_load function. Returning :ok solved the issue.

This approach looks promising. I am going to play around with it and report back.