Added checks for incorrect indentation.