Revert "Problem with printEnd solved"

This reverts commit c9d32a500603458623f5642e49876bee6652d831.
Revert "Revert "Problem with printEnd solved""

This reverts commit c8afe2e370ac210c70e5cb87e2c4d041e691d0f2.