Reorganized prelude adapter functions