Modified NetworkClient so that it uses constants from the Constants class.