Added support for GriefPrevention, fixed several bugs