Update titanium_library.cpp