Added the method "init_cake" and testing code.