Changed to isAlive method.