New logic for phone app