Started using backend code in main.cpp