Tried to improve indentation.