More Fixes

A medly of improvements and code used in future pull requests. Each commit is independent of the others.
Reviewers: @scottschurr @rec