Make free functions into class.