Add parse logic for server replies