Updated house cleaning function.