V0.005: Added KS option, fixed spell casting.