Bugfixing printing after last new function