Fixed: Applied workaround for MaxInstance call in client mode.
Fixed: Small whitespace code cleanups.
Fixed: Synced server code.