Fixes #3 - Viewport detection.