Add home logic