Moved print function to dedicated file.