Some bug fixes, optimizations, and new viewport width observing functions.