Added lazy writer decorator