Simplified code skeleton.