Added type to cfrontend and backend