Added profile support
Merge pull request #2 from dump247/profiles

Added profile support