First version with indentation detection.