Implement labeling

@jone