Modified to work with CK2+ 3.04