I've just deleted the two extract() calls. They don't seem to do anything useful as far as I can tell.