Fixed some service issues and defined a global USN environment to init and release it.