Refactored to google's pseudoclassical helpers.