Restructured for simplicity and clarity