Debugging and formatting and rearranging