Unify stackWrite