Add legend to profile
Work in progress