Modified checkPerspective()