Added a loop to generate check_home automagically