Formatted codes for clarity