Profile management

Closes #613