Extremely ugly safe stack fix
Also here, have these necessary accompanying files