Changed cursor%final to cursor%last because final is a reserved word in F2k3
Changed cursor%start to cursor%first just cuz