Added paper scanning routines