Gave up trying to fix the writer query