Moved getUserData() in header