I have built a solution for this. I've attached a script that needs to be placed before Foundation is called.