Queue functions all apparently working fine now. No more null pointer exceptions provided the records are all manually deleted.