Perks check

Implemented the required perks check.