Check if frame number is less than one and add some debug outputs