Copy steroidsification code from appgyver's fork