Added getUserData() method.