Removed reference to service function delete as delete is a reserved word and I am an idiot.