Updated foundation and cleaned up a few things.