Added pavic class. Bugs exists.