Wrapping functions in class.