Fixed a ton of issues across the framework.

[Branch: development]