Added queue, fixed some things in documentcheck