Refactored skeleton.