Added debugging in home controller