Implemented keywords stuff for profiles. Refs #634.