Added autoprint feature