Enhance receive function
Correct indentation
Implement basic indentation functionality