Moved println to seperate function