Add status checking loop