Adjusted conditional indentation
Updated version