US543 Refactored not used code anymore. Fixed updating service unavailable. Refactored status codes.