Add support for profiles (#9)