Fixed function name.
Initial work on samples.

We might have to switch to a more clever representation of behavior/profiles for better performance.