Added getUserId() method