Many bugs fixed. Got rid of qpcR dependency.