Switch to profiles.
Fix for change in core.
Merge pull request #114 from greboid/profiles

Fix for profile changes in core.