Added sign function, updated processing of skills/spells.