Move home function def after depended function.