Update backend.cpp and backend.h
Repair backend