Removed xn dependency from user.cpp