Simplified viewport function.