Added better scene check.