Completed: Porting all style functions to C++