Keeping sanity in confinement