More work on getFrameNumber