Enable oracle to work with cursor position. Code cleanup.