Add labels functions and fudge some types for now to make things work.