Removed unused var 'off'