Removed proxyprintotdiv from function destined for the server.