Code for the Backed Service